package org.tarry.springbootwebvalidation.domain.vo;

import lombok.Data;
import org.tarry.springbootwebvalidation.validation.annotation.CustomerCode;

import javax.validation.constraints.NotBlank;

@Data
public class CustomerReq {
    @NotBlank(message = "客户名称不能为空")
    private String name;

    @CustomerCode
    private String code;
    private String sex;
    private Integer age;
}
